package com.wuyanyidui.service;

import com.wuyanyidui.domain.Board;

import java.util.List;

public interface BoardService {
    //增加板块
    public void addBoardByBoard(Board board);
    //删除
    public void deleteBoardByBoardName(String boardName);
    //查找所有板块
    public List<Board> listAllBoard();
    //查找制定板块下的所有帖子,返回的Board含有Post集
    public Board listAllPostOfBoard(int boardId);
    //根据板块id找板块
    public Board intoBoardByBoardId(int boardId);
    //根据板块名找
    public Board intoBoardByBoardName(String boardName);
    //更新板块id
    public void updatePostNum(int boardId);
    //更新板块介绍
    public void updateBoardInfo(Board board);
    //删除
    public void deleteBoard(int boardId);
}
